package dao.auth;

import java.util.HashMap;
import java.util.List;

import core.base.page.Page;
import core.base.page.PageRequest;

import model.auth.Authorities;
import model.auth.AuthoritiesResources;
import model.auth.Resources;

public interface AuthoritiesResourcesDao {
	int insert(AuthoritiesResources model);

	AuthoritiesResources getById(Long id);

	int deleteById(Long id);

	List<Authorities> getAuthoritiesByResId(Long resid);

	List<Resources> getResourcesByAuthId(Long authid);
	
	Page<Resources> queryAuthoritiesForPage(PageRequest<HashMap> pageReq);
	
	Page<Authorities> queryResourcesForPage(PageRequest<HashMap> pageReq);
}
